package com.zd.service.lmpl;/**
 * @Description: OtheroutsourcingServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-21
 * @Version:v1.0
 */

import com.zd.mapper.OtheroutsourcingMapper;
import com.zd.service.lnter.OtheroutsourcingServicelnter;
import com.zzg.entity.Departurelist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: OtheroutsourcingServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-21
 * @Version:v1.0
 */
@Service
public class OtheroutsourcingServicelmpl implements OtheroutsourcingServicelnter {
    @Autowired
    private OtheroutsourcingMapper otheroutsourcingMapper;
    /**
     * 查询其它外包列表相关的所有信息
     *
     * @return 其它外包列表集合
     */
    @Override
    public List<Departurelist> selectOtheroutsourcinglist() {
        return otheroutsourcingMapper.selectOtheroutsourcinglist ();
    }

    /**
     * 分页查询其它外包列表相关的所有信息
     *
     * @param page  页码
     * @param entry 条目数
     * @return 其它外包列表集合
     */
    @Override
    public List<Departurelist> pagingqueryOtheroutsourcinglist(int page, int entry) {
        return otheroutsourcingMapper.pagingqueryOtheroutsourcinglist ((page-1)*entry,entry);
    }

    /**
     * 通过外包单号查询其它外包
     *
     * @param outsourcingid 外包单号
     * @return 其它外包对象
     */
    @Override
    public Departurelist getOtheroutsourcingByid(String outsourcingid) {
        return otheroutsourcingMapper.getOtheroutsourcingByid (outsourcingid);
    }

    /**
     * 通过多条件查询其它外包列表信息
     *
     * @param departurelist 其它外包列表对象
     * @return 其它外包列表集合
     */
    @Override
    public List<Departurelist> getOtheroutsourcinglistcondition(Departurelist departurelist) {
        return otheroutsourcingMapper.getOtheroutsourcinglistcondition (departurelist);
    }

    /**
     * 通过多条件查询其它外包列表信息并分页
     *
     * @param departurelist 其它外包列表对象
     * @param page          页码
     * @param entry         条目数
     * @return 其它外包列表集合
     */
    @Override
    public List<Departurelist> conditionqueryOtheroutsourcinglist(Departurelist departurelist, int page, int entry) {
        return otheroutsourcingMapper.conditionqueryOtheroutsourcinglist (departurelist,(page-1)*entry,entry);
    }
}
